package com.sh.rbac.domain.dto.job;

import com.sh.rbac.core.common.base.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 任务保存参数
 *
 * @author wb
 * @since 2024-08-05
 */

@Data
@Schema(description = "任务保存参数")
public class JobSaveDTO extends BaseDTO {

    @Schema(description = "任务名称")
    private String jobName;

    @Schema(description = "任务组")
    private String jobGroup;

    @Schema(description = "调用目标字符串")
    private String invokeTarget;

    @Schema(description = "cron表达式")
    private String cronExpression;

    @Schema(description = "cron计划策略;1-立即执行,2-执行一次,3-放弃执行")
    private Integer misfirePolicy;

    @Schema(description = "是否并发;0-允许,1-禁止")
    private Integer concurrent;
}
